<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="edu.lhh.model.scoretype" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.css" rel="stylesheet" media="screen">
  <link href="js/jquery-2.2.4.min.js" rel="stylesheet" media="screen">
<title>Insert title here</title>
</head>
<body>
<form action="./scoreupdata" method="post">
	<div class = "container">
		<div class="row">
			<div class = "col-xs-4"></div>
			<div class = "col-xs-4">
				<h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;修改该学生的成绩</h2>
				<%Object obj = request.getAttribute("ups"); 
				scoretype tp = (scoretype)obj;
				%>
				<input type = "hidden" name="index" value=<%= tp.getIndex() %>>
				<input type = "hidden" name="id" value=<%= tp.getId() %>>
			
				学号<input type="text"   class="form-control"  placeholder=<%=request.getAttribute("sid")%> value =<%= tp.getId()%> disabled><br>
				 
				Math<input type="text"  name = "math"class="form-control" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" placeholder="输入数学成绩" value =<%= tp.getMath() %> required><br>

				English<input type="text"  name="eng" id = "pwd" class="form-control" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" placeholder="输入英语成绩" value =<%=tp.getEnglish() %> required><br>
				
				PE<input type="text" name="pe" class="form-control" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" placeholder="输入体育成绩" value =<%=tp.getPe() %> required><br>

				<input type="submit" value="保存" class="btn btn-info btn-lg btn-block" "><br>
				<%//System.out.println(tp.getId()); %>
			</div>
			<div class = "col-xs-4"></div>
		</div>
	</div>





</form>
</body>
</html>